package com.ruoyi.life.mapper;

import com.ruoyi.life.domain.LifeApartmentPerson;
import com.ruoyi.omp.api.domain.BuiRoom;

import java.util.List;

/**
 * 公寓人员Mapper接口
 * 
 * @author cjie
 * @date 2022-11-26
 */
public interface LifeApartmentPersonMapper {
    /**
     * 查询公寓人员
     * 
     * @param id 公寓人员ID
     * @return 公寓人员
     */
     LifeApartmentPerson selectLifeApartmentPersonById(String id);

    /**
     * 查询公寓人员列表
     * 
     * @param lifeApartmentPerson 公寓人员
     * @return 公寓人员集合
     */
     List<LifeApartmentPerson> selectLifeApartmentPersonList(LifeApartmentPerson lifeApartmentPerson);

    /**
     * 新增公寓人员
     * 
     * @param lifeApartmentPerson 公寓人员
     * @return 结果
     */
     int insertLifeApartmentPerson(LifeApartmentPerson lifeApartmentPerson);

    /**
     * 修改公寓人员
     * 
     * @param lifeApartmentPerson 公寓人员
     * @return 结果
     */
     int updateLifeApartmentPerson(LifeApartmentPerson lifeApartmentPerson);

    /**
     * 删除公寓人员
     * 
     * @param id 公寓人员ID
     * @return 结果
     */
     int deleteLifeApartmentPersonById(String id);

    /**
     * 批量删除公寓人员
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
     int deleteLifeApartmentPersonByIds(String[] ids);

    BuiRoom selectRoom(BuiRoom search);

    List<BuiRoom> selectLifeApartmentList(BuiRoom room);

    LifeApartmentPerson selectLifeApartmentPersonByPhone(String phone);
}
